<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>进入班级信息</title>
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <style>
        .span2 a{
            display: block;
            text-align: center;
            font-size: 17px;
            line-height: 50px;
        }
        a:hover{
            text-decoration: none;
            background: #999999;
        }
    </style>
</head>
<body>
<div class="container-fluid" style="margin-top: 50px;">
    <div class="row-fluid">
        <div class="span12">
            <div class="row-fluid">
                <div class="span4">
                </div>
                <div class="span4">
                    <h2 class="text-center">
                        欢迎进入管理页面
                    </h2>
                </div>
                <div class="span4">
                    <a th:href="@{/}" class="btn" style="float: right">退出</a>
                </div>
            </div>
        </div>
    </div>
    <div class="row-fluid">
        <div class="span2" style="margin-top: 50px">
            <ul class="unstyled">
                <li>
                    <div class="md-end-block md-p md-focus">
                        <a th:href="@{/Cinformation}" class="md-plain" style="background: #999999">班级信息</a>
                    </div>
                    <div class="md-end-block md-p">
                        <a th:href="@{/CSinformation}" class="md-plain">学生信息</a>
                    </div>
                    <div class="md-end-block md-p">
                        <a th:href="@{/cainformation}" class="md-plain">添加学生</a>
                    </div>
                    <div class="md-end-block md-p">
                        <a th:href="@{/classaddclass}" class="md-plain">添加班级</a>
                    </div>
                    <div class="md-end-block md-p">
                        <a th:href="@{/classHomework}" class="md-plain">作业查重</a>
                    </div>
                </li>
            </ul>
        </div>
        <div class="span8"  style="margin-top: 50px">
            <form class="form-search" th:action="@{/findsid}" method="post">
                <input class="input-medium search-query" name="sid" type="text" placeholder="请输入学号"/>
                <input name="classId" th:value="${classId}" style="display: none"/>
                <input type="submit" class="btn" value="查找"/>
            </form>
            <table class="table">
                <thead>
                <tr>
                    <th>
                        学号
                    </th>
                    <th>
                        姓名
                    </th>
                    <th>
                        性别
                    </th>
                    <th>
                    </th>
                    <th>
                    </th>
                </tr>
                </thead>
                <tbody>
                <tr class="success" th:each="studentInfo : ${studentInfos}">
                    <td th:text="${studentInfo.sid}"></td>
                    <td th:text="${studentInfo.sname}"></td>
                    <td th:text="${studentInfo.sex}"></td>
                    <td>
                        <a th:href="@{'/cseestudent?sid='+${studentInfo.sid}}">查看</a>
                    </td>
                    <td>
                        <a th:href="@{'/deletestudent?sid='+${studentInfo.sid}+'&classId='+${classId}}">删除</a>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="span2">

        </div>
    </div>
</div>
</body>
</html>